<?php
if(!defined('MY_ROOT'))
{throw new Exception('Access Denied');}
$smarty=$_G['hwnd']['smarty'];
if(isset($_REQUEST['name']))
{
$_SESSION['name']=$_REQUEST['name'];	
}
if(!isset($_SESSION['name']))
{
$smarty->display('chat/login.tpl');
throw new Exception();
}
$smarty->display('chat/main.tpl');
?>